<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/public.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/Template/default/css/ico-ie7.css">
	<![endif]-->
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/public.js"></script>
	<script type="text/javascript" src="http://localhost/obj/movier/Template/default/js/slide.js"></script>
	<title>幕后 - <?php echo $const['webname'];?></title>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?></head>
<body>
	<!-- 顶部开始 -->
	<div class="bgblack">
		<div class="w1200 auto p5 bgblack">
			<a class="white-2 af mr20" href="http://localhost/obj/movier">老地方电影</a>
		</div>
	</div>
	<!-- 顶部结束 -->
	<!-- menu开始 -->
	<div class="h65 bgwhite rel zix2 fixMenu">
		<div class="w1200 auto h65 rel fix">
			<div class="logo t0 l0 w100 h65 l mr30"><img src="http://localhost/obj/movier/Template/default/img/logo.png" alt="" /></div>
			<ul class="l fm rel menu">
					<li class="l lh60 mr30" act="1"><a class="w50 tc dib f16 black" href="http://localhost/obj/movier">首页</a></li>
						<?php
		$re = M('category')->limit(5)->where('pid=0')->all();
		foreach ($re as $c) :
			if(15==$c['cid']) $c['act']='act="1"';
			$c['url']=U($c['url'],array('cid'=>$c['cid'],'nav'=>$c['cid']));
		?>
					<li class="l lh60 mr30" <?php echo $c['act'];?>><a class="w50 tc dib f16 black" href="<?php echo $c['url'];?>"><?php echo $c['cname'];?></a></li>
				<?php endforeach ;?>
				<span class="movebg dib w50 bgblue h4 abs b0 l0"></span>
			</ul>
			<div class="r abs t20 r10">
				<form action="<?php echo U('search/index');?>" method="get" class="dib ">
					<div class="dib bdc w200 rel">
						<input class="p5 pct80 bd0" type="text" name="keys" />
						<input type="submit" class="hand gray abs t3 r5 bd0 search" value="&emsp;&ensp;" />
					</div>
				</form>
				<p class="p5 dib fm ml10">
					<?php if($_SESSION['user']['uid']){?>
						<span class="f14 black mr10">欢迎您： <a class="gray a f14" href="<?php echo U('User/index');?>"><i class="icon-user mr3 gray"></i><?php echo $_SESSION['user']['email'];?> [ <?php echo $_SESSION['user']['nickname'];?> ]</a></span>
						<a class="f14 black" href="<?php echo U('User/out');?>"><i class="icon-signout mr3 gray"></i>退出</a>
						<?php if($_SESSION['user']['level'] > 0){?>
							| <a class="f14 blue5 tsblack" href="http://localhost/obj/movier?a=admin">后台管理</a>
							<?php if($_SESSION['user']['level'] == 9){?><span class="p2 pl5 pr5 rad50 white bgmaroon">超</span><?php }?>
						<?php }?>
					<?php  }else{ ?>
						<a class="f14 black mr10" href="<?php echo U('User/login');?>">登录</a>
						<a class="f14 black" href="<?php echo U('User/reg');?>">注册</a>
					<?php }?>
					
				</p>
			</div>
		</div>
	</div>
	<!-- menu结束 -->

	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix p5">
		<div class="fm mb30">
			<span class="f24 black2">幕后花絮</span>  <span class="gray3 f30 ml10 mr5 fg">“</span><span class="gray1 f16">揭密电影幕后制作</span><span class="gray3 f30 ml5 fg">”</span>
		</div>
		<!-- 左侧开始 -->
		<div class="f w860 bsd1 mr20 l bgwhite">
			<?php $hd["list"]["a"]["total"]=0;if(isset($art) && !empty($art)):$_id_a=0;$_index_a=0;$lasta=min(1000,count($art));
$hd["list"]["a"]["first"]=true;
$hd["list"]["a"]["last"]=false;
$_total_a=ceil($lasta/1);$hd["list"]["a"]["total"]=$_total_a;
$_data_a = array_slice($art,0,$lasta);
if(count($_data_a)==0):echo "";
else:
foreach($_data_a as $key=>$a):
if(($_id_a)%1==0):$_id_a++;else:$_id_a++;continue;endif;
$hd["list"]["a"]["index"]=++$_index_a;
if($_index_a>=$_total_a):$hd["list"]["a"]["last"]=true;endif;?>

				<div class="p20 of">
					<div class="l w300 h200 mr20 of">
						<?php if($a['medium']){?>
							<a href="<?php echo U('Index/content',array('aid'=>$a['aid'],'cid'=>$a['cid'],'nav'=>$_GET['nav']));?>"><img src="http://localhost/obj/movier/<?php echo $a['medium'];?>" alt="" class="w300 h200" /></a>
						<?php  }else{ ?>
							<img src="http://localhost/obj/movier/Template/default/img/noimg.jpg" alt="" class="w300 h200" />
						<?php }?>
					</div>
					<div class="l w450 p10">
						<h3><a class="black fm f16" href="<?php echo U('Index/content',array('aid'=>$a['aid'],'cid'=>$a['cid'],'nav'=>$_GET['nav']));?>"><?php echo $a['title'];?></a>
							<?php if($a['styleName']){?>
								<span class="<?php echo $a['styleName'];?>"><?php echo $a['tname'];?></span>
							<?php }?>
						</h3>
						<div class="mt10">
							<span class="dib w90 h14 star f0">
								<b class="dib h14 f0" style="width:<?php echo getStarPct($a['star']);?>%"></b>
							</span>
							<span class="f14 orange"><?php echo $a['star'];?></span>
						</div>
						<p class="mt10 fm f14">
							<?php echo $a['cont'];?>
						</p>
						<p class="mt10 fm"><a class="f14" href="<?php echo U('Index/content',array('aid'=>$a['aid'],'cid'=>$a['cid'],'nav'=>$_GET['nav']));?>">阅读全文...</a></p>
						<div class="mt10 gray rel tr">
							<p class="abs"><?php echo date_before($a['addtime']);?></p> 
							<p class="dib r0 t0 w300 tr">
								<i class="icon-eye-open icon-large mr5 gray3" title="查看数"></i><?php echo $a['hits'];?>
								<i class="icon-comment icon-large mr5 gray3" title="评论数"></i><?php echo $a['comments'];?>
								<i class="icon-heart icon-large mr5 gray3" title="喜欢人数"></i><?php echo $a['enjoys'];?>
							</p>
						</div>
					</div>
				</div>
			<?php $hd["list"]["a"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>

			<!-- 分页开始 -->
			<div class="page cl mt10 mb10">
				<?php echo $page;?>
			</div>
			<!-- 分页结束 -->
		</div>
		<!-- 左侧结束 -->
		<!-- 右侧开始 -->
		<div class="f w300 l">
			<div class="bsd2 bde bgwhite">
				<div class="lh30 pl20 fm b rel mt10">热门频道 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b></div>
				<div class="p10">
							<?php
		$re = M('category')->limit(10)->where('hits>1')->all();
		foreach ($re as $c) :
			$c['url']=U('List/index',array('cid'=>$c['cid'],'nav'=>13));
		?>
						<a href="<?php echo $c['url'];?>" class="dib bgwhite-2 blue p5 rad2 a1 m5"><?php echo $c['cname'];?></a>
					<?php endforeach ;?>
				</div>
			</div>
			
			<div class="bsd2 bde mt20 bgwhite">
				<div class="lh30 pl20 fm b rel mt10">精彩评论 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b> </div>
						<?php
		$sql = "SELECT a.aid,a.title,a.cid,c.content,c.addtime,u.nickname FROM ldf_comment as c JOIN ldf_article as a ON c.aid=a.aid JOIN ldf_user AS u ON c.uid=u.uid WHERE c.wonderful=1 ORDER BY c.cid DESC LIMIT 10";
		$re = M()->query($sql);
		foreach ($re as $com) :
			$com['urls']=U('Index/content',array('cid'=>$com['cid'],'aid'=>$com['aid']));
		?>
					<div class="pl10 pr10">
						<a href="<?php echo $com['urls'];?>" class="p10 dib black b f12"><?php echo $com['title'];?></a>
						<p class="p10 bgwhite-1 rad3 rel mt5">
							<i class="iconTopSanjiao"></i>
							<a href="<?php echo $com['urls'];?>" class="black"><?php echo mb_substr($com['content'],0,100,'utf8');?>...</a>
						</p>
						<p class="tr p10 bbe"><a href="" class="gray"><?php echo $com['nickname'];?></a> 评论于 <?php echo date_before($com['addtime']);?></p>
					</div>
				<?php endforeach ;?>
			</div>

			<div class="bsd2 bde mt20 bgwhite">
				<div class="lh30 pl20 fm b rel mt10">精彩幕后 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b> </div>
				<div class="p10">
					<ul>
								<?php
		$re = 15?M('article')->limit(10)->where('cid=15')->order('aid DESC')->all():M('article')->limit(10)->order('aid DESC')->all();
		foreach ($re as $a) :
			$a['urls']=U('Index/content',array('cid'=>$a['cid'],'aid'=>$a['aid'],'nav'=>$a['cid']));
		?>
							<li class="a3 p5"><b class="mr5 fg blue f16">1</b><a href="<?php echo $a['urls'];?>" class="black"><?php echo $a['title'];?></a></li>
						<?php endforeach ;?>
					</ul>
				</div>
			</div>

			<div class="bsd2 bde mt20 bgwhite">
				<div class="lh30 pl20 fm b rel mt10">热门活动 <b class="abs bgblue h30 w5 f0 l-5 t0">1</b> <a href="" class="abs r10 t0 n fs black">更多活动+</a></div>
				<div class="p10">
							<?php
		$re = 16?M('article')->limit(10)->where('cid=16')->order('aid DESC')->all():M('article')->limit(10)->order('aid DESC')->all();
		foreach ($re as $a) :
			$a['urls']=U('Index/content',array('cid'=>$a['cid'],'aid'=>$a['aid'],'nav'=>$a['cid']));
		?>
						<a href="<?php echo $a['urls'];?>" class="p10 dib"><img class="w260 h120" src="http://localhost/obj/movier/<?php echo $a['medium'];?>" alt="" /></a>
					<?php endforeach ;?>
				</div>
			</div>



		</div>



		<!-- 右侧结束 -->
	</div>
	<!-- 内容结束 -->



<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	<!-- 底部开始 -->
	<div class="bgblack h100 white-2 mt20">
		<!-- <div class="fs tc pt10">
			<a href="" class="dib p5 white-2">合作推广</a>
			<a href="" class="dib p5 white-2">联系我们</a>
			<a href="" class="dib p5 white-2">加入我们</a>
		</div> -->
		<div class="pt20">
			<p class="tc p5"><?php echo $const['bottom1'];?></p>
			<p class="tc p5"><?php echo $const['bottom2'];?></p>
		</div>
	</div>
	<!-- 底部结束 -->
</body>
</html>